import request from '@/utils/request'

export function getInfoStyle(query) {
  return request({
    url: '/system/style/getInfo',
    method: 'get',
    params: query
  })
}

export function editStyle(data) {
  return request({
    url: '/system/style/edit',
    method: 'post',
    data: data
  })
}

export function upLoadSysStylePic(data) {
  return request({
    url: '/system/style/upLoadSysStylePic',
    method: 'post',
    data: data
  })
}

export function getLogo() {
  return request({
    url: '/system/style/styleAvatar',
    method: 'get'
  })
}

export function getSystemInfo() {
  return request({
    url: '/system/style/getStyleInfo',
    method: 'get'
  })
}

export function checkActiveService() {
  return request({
    url: '/system/bootstrap/checkActivitiService',
    method: 'get'
  })
}

/**
 * 获取消息通知方式 模板变量
 * @returns {AxiosPromise}
 */
export function getAlarmParam() {
  return request({
    url: '/system/template/getAlarmParam',
    method: 'get'
  })
}
